package net.minecraft.src;

 import net.minecraft.src.BaseMod;
import net.minecraft.src.Block;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.Item;
import net.minecraft.src.Material;
import net.minecraft.src.ModLoader;

public class mod_Part1 extends BaseMod { 
	public static Block dirtPath = new BlockDirtPath(172).setUnlocalizedName("dirtPath").setCreativeTab(CreativeTabs.tabBlock).setHardness(1);
	public static Item rawLambchop= new ItemFood(174, 3, 0.8f, true).setUnlocalizedName("rawLambchop").setCreativeTab(CreativeTabs.tabFood);
	public static Item cookedLambchop= new ItemFood(175, 8, 0.8f, true).setUnlocalizedName("cookedLambchop").setCreativeTab(CreativeTabs.tabFood);
	public String getVersion()
	{
		return "1.0";
	}
	public void load() {
		
		//registering blocks
		ModLoader.registerBlock(dirtPath);
		
		//adding names
		ModLoader.addName(dirtPath, "Dirt Path");
		ModLoader.addName(rawLambchop, "Raw Lambchop");
		ModLoader.addName(cookedLambchop, "Mutton");
		
		//adding recipes
		ModLoader.addRecipe(new ItemStack(this.dirtPath, 4), "XXX",  "OOO", 'X', Block.gravel, 'O', Block.dirt);
		ModLoader.addSmelting(this.rawLambchop.itemID, new ItemStack(this.cookedLambchop, 1), 0.02F);

	}
}
